package com.isoftstone.common.dao;

import com.isoftstone.common.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleMenuMapper {


    void saveRoleMenus(@Param(value = "roleId") String roleId, @Param(value = "menuIds") String menuIds) throws Exception ;
    //商户端保存menu菜单
    void shangHuSaveRoleMenus(@Param(value = "roleId") String roleId, @Param(value = "menuIds") String menuIds) throws Exception ;
    //商户端删除menu菜单
    void shangHudeleteRoleMenus(@Param(value = "roleId") String roleId, @Param(value = "menuIds") String menuIds) throws Exception ;

    void deleteRoleMenus(@Param(value = "roleId") String roleId, @Param(value = "menuIds") String menuIds) throws Exception ;

    void  deleteRoleMenusByRoleId(@Param(value = "roleId") String roleId) throws Exception ;

    List<String> getMenusByRoleId(@Param(value = "roleId") String roleId) throws Exception ;

    void saveRoleMenus2(@Param("roleId") String roleId, @Param("menuId") String menuId)throws Exception;//test

    void deleteRoleMenus2(@Param("roleId") String roleId, @Param("s") String s) throws Exception;

    void deleteRoleMenu(@Param("roleId") String roleId)throws Exception;

    void addRoleMenus(@Param("roleid") String roleid, @Param("menuid") String menuid)throws Exception;


    List<String> getMenusByRoleIdOnlyLeaf(@Param("roleId") String roleId);
}
